const response = await fetch('../../configure/Default.json');
const configure = await response.json();

export const ServiceType = configure.ServiceType;
export const LayerType = configure.LayerType;
export const BroadcastStatus = configure.broadcastStatusDict;
export const StaffStatusText = configure.staffStatusTextDict;
export const TreeNodeParent = configure.treeNodeParentDict;
export const AlarmStatus = configure.sensorAlarmStatusDict;

export default  {
    Meta: 'meta',
    Layer: 'layer',
    Insert: 'insert',
    LWPolyline : 'lwpolyline',
    Line : 'line',
    Circle : 'circle',
    Arc : 'arc',
    Text: 'text',
    MText: 'mtext',
    SPLine: 'spline',
    Polyline: 'polyline',
    Ellipse: 'ellipse',
    Hatch: 'hatch',
    Track: 'track',
    Position: 'position',
    Vehicle: 'vehicle',
    Person: 'person',
    Device: 'device',
    Tunnel: 'tunnel',
    GuidePoint: 'guidepoint',
    Fault: 'fault',
    Warning: 'warning',
    WarningV2: 'warningv2',
    Water: 'water',
    Fissure: 'fissure',
    Sensor: 'sensor',
    Inter: 'inter',
    RootPolygon: 'rootPolygon',
    SlightPoint: 'slightPoint',
    Modify: 'modify',
    Measure: 'measure',
    M_Station: 'm_station',
    M_Staff: 'm_staff',
    K_Station: 'k_station',
    K_Node: 'k_node',
    V_Camera: 'v_camera'
}
export const DeviceType = {
    'm_station': 0,
    'k_station': 1,
    'k_node': 2,
    'v_camera': 3
}